SplashOutputDev: Fix integer overflow in tilingPatternFill
authorMarek Kasik <mkasik@redhat.com>
Thu, 21 May 2026 15:51:51 +0000 (17:51 +0200)
committerJohn Scott <jscott@posteo.net>
Thu, 2 Jul 2026 16:52:33 +0000 (16:52 +0000)
commitc8b3092822f6d4729467d7ed4171331a5c74df7f
tree968b31401754d4929d04bce58ac7c753c243cea0
parent3fa08ba7064b3a63889baf8169341e771389f5b0
SplashOutputDev: Fix integer overflow in tilingPatternFill

Origin: https://gitlab.freedesktop.org/poppler/poppler/-/commit/8352264766652b98336e92359a70b3161a9ab97a
Bug-Debian: https://bugs.debian.org/1138708
Bug: https://gitlab.freedesktop.org/poppler/poppler/-/work_items/1715
Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2026-10118

Use checkedMultiply() to check integer multiplication of surface size
and number of repetitions to avoid integer overflow and possible memory issues.

Fixes: #1715
Gbp-Pq: Name SplashOutputDev-Fix-integer-overflow-in-tilingPatter.patch
poppler/SplashOutputDev.cc